
app:registClass("FriendController", "app.friend.controllers.FriendController")

local FriendModel = import(".models.FriendModel")

app:registInst(FriendModel.new())

app:registInst(app:getClass("FriendController").new({type="systemUI"}))


app.session:on("pb_friend.S2C_FriendRequestNotify", function(msg)
	print("-------->  S2C_FriendRequestNotify")
	app:sendMsg("FriendModel", "addFriendRequest", msg.sender)
end)
